<tpl>
<fieldset class="layui-elem-field">
  <!-- <legend>{{ LL('user detail') }}</legend> -->
  <div class="layui-field-box">
    {{ d.headTip }}
    <div class="layui-tab layui-tab-card" lay-filter="usertab">
      <ul class="layui-tab-title">
        <li class="layui-this" lay-id="usertab1">{{ L('info') }}</li>
        <li lay-id="usertab2">{{ L('role') }}</li>
        <li lay-id="usertab3">{{ LL('wallet change') }}</li>
        <!-- <li lay-id="usertab4">拉新邀请</li> -->
        <li lay-id="usertab5">{{ L('order') }}</li>
      </ul>
      <div class="layui-tab-content" style="min-height: 100px;">
        <div class="layui-tab-item">
          <from class="layui-form">
          <table class="layui-table">
            <tr>
              <th>{{ L('name-key','user') }}</th>
              <td>{{ $info.name }}</td>
            </tr>
            <tr>
              <th style="text-align:top;width:150px;">{{ L('ava') }}</th>
              <td>
                <div class="wxuploaderimg clearfix" data-maxitems="1">
                  <div class="img-preview clearfix " style="display:inline-block">
                    <div class="pull-left clearfix img-item">
                      <img class="img-responsive thumbnail js-view" src="{{ _rb.avaUrl($info.id,90) }}" layer-src="{:avaUrl($info.id)}" style="width:90px;border-radius:50%" alt="image" data-imageid="7">
                    </div>
                  </div>
                </div>
              </td>
            </tr>
            <tr>
              <th>{{ L('nick') }}</th>
              <td>{ $info.nick}</td>
            </tr>
            <tr>
              <th>{{ L('email') }}</th>
              <td>{ $info.email}</td>
            </tr>
            <tr>
              <th>{{ LL('reg time') }}</th>
              <td>
                { gt name="$info.reg_time" value="0"}
                { :date('Y-m-d H:i:s',$info.reg_time)}
              { /gt}</td>
            </tr>
          </table>
          </from>
        </div>
        <div class="layui-tab-item">
          <!-- 角色 -->
          { volist name="roles" id="v"}
            <!-- <input type="checkbox" value="{ $v.id}" name="roles[]" { eq name="v.check" value="1" } checked {/eq}> { $v.name} -->
          { /volist}
        </div>
        <div class="layui-tab-item">
          <!-- 余额变更 -->
          <form class="layui-form layui-form-pane" lay-filter="js-form">
            <!-- {:token()} -->
            <div class="layui-inline layui-form-item mb0">
              <!-- <label class="layui-form-label">变更时间</label> -->
              <div class="layui-input-inline" style="width: 130px;">
                <select name="dt_type" id="jsf-dt-type" lay-filter="search">
                  <option value="">{{ L('select-df-key','change type')}}</option>
                  { volist name="dtTypes" id="v"}
                  <option value="{ $v.id}">{ $v.title}</option>
                  { /volist}
                </select>
              </div>
            </div>
            <div class="layui-inline layui-form-item mb0">
              <label class="layui-form-label">{{ LL('change time') }}</label>
              { include file="df/tpl/layui_time"}
            </div>
            <div class="layui-inline">
              { include file="df/tpl/layui_search"}
            </div>
          </form>
<table id="demo" lay-filter="fDemo"></table>
        </div>
<!--         <div class="layui-tab-item">
          <!- - 邀请 - ->
          <form class="layui-form layui-form-pane" lay-filter="js-form2">
            {:token()}
            <div class="layui-inline layui-form-item mb0">
              <label class="layui-form-label">变更时间</label>
              {include file="df/tpl/layui_time2" start="jsf-start2" end="jsf-end2"}
            </div>
            <div class="layui-inline">
              {include file="df/tpl/layui_search1" id="js-search2"}
            </div>
          </form>
<table id="invite" lay-filter="fInvite"></table>
        </div> -->
        <div class="layui-tab-item">
          <!-- 用户订单 -->
          <form class="layui-form layui-form-pane" lay-filter="js-form3">
            <!-- {:token()} -->
            <div class="layui-inline layui-form-item mb0">
              <label class="layui-form-label">{{ LL('create time') }}</label>
              { include file="df/tpl/layui_time2" start="jsf-start3" end="jsf-end3"}
            </div>
            <div class="layui-inline">
              { include file="df/tpl/layui_search1" id="js-search3"}
            </div>
          </form>
<table id="order" lay-filter="fOrder"></table>
        </div>
      </div>
    </div>
  </div>
</fieldset>
<script type="text/html" id="barDemo">
  <div class="layui-btn-group">
    <a data-href="{{ _rb.controller }}/detail" data-params='"id":{{ d.id }}' class="layui-btn layui-btn-sm ajax-layer" title="{{ LL('look detail') }}"><i class="layui-icon layui-icon-username"></i>{{ L('detail') }}</a>
    { include file="layer/tpl/layui_edit_del"}
  </div>
</script>
</tpl>

<js>
<!--# include virtual="/user/detailUser.js" -->
</js>